import EnhancedTextArea from '@/sula-plugin/field-plugin/EnhancedTextArea';
import ProForm from '@ant-design/pro-form';

type Props = {
  name?: string | string[];
  label?: string;
  placeholder?: string;
  rules?: any[];
  value?: string;
  fieldProps?: any;
  onChange?: (value: any) => void;
  [key: string]: any;
};

const EnhancedFormTextArea: React.FC<Props> = ({ name, label, rules, fieldProps, ...rest }) => {
  return (
    <ProForm.Item name={name} label={label} rules={rules}>
      <EnhancedTextArea {...fieldProps} {...rest} />
    </ProForm.Item>
  );
};

export default EnhancedFormTextArea;
